#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
__author__ = "Lei Chen <hide1713@gmail.com>"
import unittest
import sys
import logging
sys.path.append("../")
from src.genome_config import GenomeConfig

class TestGenomeConfig(unittest.TestCase):
    """Unit test for GenomeConfig"""

    def test_read_file(self, ):
        """Test read_file
        """
        rec = GenomeConfig()
        rec.read_file("sample.cfg")
        self.assertEqual(rec.cog_file_path,"meta/sample.cog")
        self.assertEqual(rec.genome_data_folder,"sample/")
        self.assertEqual(rec.hitp_data_folder,"hitp/")
        self.assertEqual(rec.logging_level, logging.INFO)
    
if __name__ == '__main__':
    unittest.main()

